<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DeepThink 对话界面模拟</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a1c25, #0e1016);
            color: #e1e1e1;
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }
        
        .header {
            background-color: rgba(20, 22, 30, 0.9);
            padding: 16px 24px;
            border-bottom: 1px solid #2e3440;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-icon {
            font-size: 24px;
            color: #5e81ac;
        }
        
        .logo-text {
            font-size: 20px;
            font-weight: 600;
            background: linear-gradient(90deg, #88c0d0, #5e81ac);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .tagline {
            font-size: 14px;
            color: #d8dee9;
            opacity: 0.8;
        }
        
        .container {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        
        .sidebar {
            width: 260px;
            background-color: rgba(25, 28, 36, 0.8);
            border-right: 1px solid #2e3440;
            padding: 20px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
        
        .new-chat-btn {
            background: linear-gradient(90deg, #5e81ac, #81a1c1);
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
            transition: all 0.2s;
        }
        
        .new-chat-btn:hover {
            background: linear-gradient(90deg, #81a1c1, #88c0d0);
            transform: translateY(-2px);
        }
        
        .history-title {
            font-size: 14px;
            color: #d8dee9;
            margin: 20px 0 10px;
            opacity: 0.7;
        }
        
        .chat-history {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .history-item {
            padding: 10px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .history-item:hover {
            background-color: rgba(76, 86, 106, 0.3);
        }
        
        .history-item i {
            color: #5e81ac;
            font-size: 14px;
        }
        
        .chat-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        
        .messages {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
        
        .message {
            max-width: 80%;
            padding: 16px 20px;
            border-radius: 12px;
            line-height: 1.5;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .user-message {
            align-self: flex-end;
            background: linear-gradient(135deg, #5e81ac, #81a1c1);
            color: white;
            border-bottom-right-radius: 4px;
        }
        
        .bot-message {
            align-self: flex-start;
            background-color: #2e3440;
            color: #d8dee9;
            border-bottom-left-radius: 4px;
        }
        
        .message-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        
        .avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        .user-avatar {
            background: linear-gradient(135deg, #88c0d0, #5e81ac);
        }
        
        .bot-avatar {
            background: linear-gradient(135deg, #bf616a, #d08770);
        }
        
        .input-area {
            padding: 20px 24px;
            border-top: 1px solid #2e3440;
            background-color: rgba(20, 22, 30, 0.9);
        }
        
        .input-container {
            display: flex;
            gap: 12px;
            background-color: #2e3440;
            border-radius: 12px;
            padding: 6px 6px 6px 20px;
        }
        
        .input-field {
            flex: 1;
            background: transparent;
            border: none;
            color: #d8dee9;
            font-size: 16px;
            padding: 14px 0;
            outline: none;
        }
        
        .send-btn {
            background: linear-gradient(135deg, #5e81ac, #81a1c1);
            color: white;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .send-btn:hover {
            background: linear-gradient(135deg, #81a1c1, #88c0d0);
            transform: rotate(10deg) scale(1.05);
        }
        
        .footer {
            text-align: center;
            padding: 16px;
            font-size: 12px;
            color: #4c566a;
            border-top: 1px solid #2e3440;
        }
        
        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 6px;
        }
        
        ::-webkit-scrollbar-track {
            background: rgba(46, 52, 64, 0.3);
            border-radius: 3px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #4c566a;
            border-radius: 3px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: #5e81ac;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .sidebar {
                display: none;
            }
            
            .message {
                max-width: 90%;
            }
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="logo">
            <div class="logo-icon"><i class="fas fa-brain"></i></div>
            <div>
                <div class="logo-text">DeepThink</div>
                <div class="tagline">AI对话助手谭兴文</div>
            </div>
        </div>
    </div>
    
    <div class="container">
        <div class="sidebar">
            <button class="new-chat-btn">
                <i class="fas fa-plus"></i>
                新的对话
            </button>
            
            <div class="history-title">历史对话</div>
            <div class="chat-history">
                <div class="history-item">
                    <i class="fas fa-comment"></i>
                    <span>基尔霍夫定律请教</span>
                </div>
                <div class="history-item">
                    <i class="fas fa-comment"></i>
                    <span>示波器的使用</span>
                </div>
                <div class="history-item">
                    <i class="fas fa-comment"></i>
                    <span>谭兴文陈晓莉聊天记录</span>
                </div>
                <div class="history-item">
                    <i class="fas fa-comment"></i>
                    <span>三相交流电的性质</span>
                </div>
            </div>
        </div>
        
        <div class="chat-container">
            <div class="messages" id="messages">
                <div class="message bot-message">
                    <div class="message-header">
                        <div class="avatar bot-avatar">AI</div>
                        <strong>DeepThink助手</strong>
                    </div>
                    <div class="message-content">您好！我是DeepThink AI助手。</div>
                </div>
            </div>
            
            <div class="input-area">
                <div class="input-container">
                    <input type="text" class="input-field" id="user-input" placeholder="输入消息..." autofocus>
                    <button class="send-btn" id="send-btn">
                        <i class="fas fa-paper-plane"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <div class="footer">
        DeepThink 对话界面模拟 &copy; 2023 - 仅用于演示目的，禁止对谭兴文的个人崇拜
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const messagesContainer = document.getElementById('messages');
            const userInput = document.getElementById('user-input');
            const sendBtn = document.getElementById('send-btn');
            
            // 添加示例对话
            addExampleConversation();
            
            // 发送消息函数
            function sendMessage() {
                const message = userInput.value.trim();
                if (message === '') return;
                
                // 添加用户消息
                addMessage(message, 'user');
                
                // 清空输入框
                userInput.value = '';
                
                // 模拟AI回复延迟
                setTimeout(() => {
                    addMessage('西大附中的学生四大力学都会了。', 'bot');
                    // 滚动到底部
                    messagesContainer.scrollTop = messagesContainer.scrollHeight;
                }, 100);
            }
            
            // 添加消息到对话框
            function addMessage(content, sender) {
                const messageDiv = document.createElement('div');
                messageDiv.classList.add('message');
                messageDiv.classList.add(sender + '-message');
                
                const headerDiv = document.createElement('div');
                headerDiv.classList.add('message-header');
                
                const avatarDiv = document.createElement('div');
                avatarDiv.classList.add('avatar');
                avatarDiv.classList.add(sender + '-avatar');
                
                const strong = document.createElement('strong');
                
                if (sender === 'user') {
                    avatarDiv.textContent = '你';
                    strong.textContent = '用户';
                } else {
                    avatarDiv.textContent = 'AI';
                    strong.textContent = 'DeepThink助手';
                }
                
                headerDiv.appendChild(avatarDiv);
                headerDiv.appendChild(strong);
                
                const contentDiv = document.createElement('div');
                contentDiv.classList.add('message-content');
                contentDiv.textContent = content;
                
                messageDiv.appendChild(headerDiv);
                messageDiv.appendChild(contentDiv);
                
                messagesContainer.appendChild(messageDiv);
                
                // 滚动到底部
                messagesContainer.scrollTop = messagesContainer.scrollHeight;
            }
            
            // 添加示例对话
            function addExampleConversation() {
                const exampleMessages = [
                    { sender: 'user', content: '如何评价西南大学谭兴文' },
                    { sender: 'bot', content: '西大附中的学生四大力学都会了。' },
                ];
                
                // 先添加初始消息
                const initialMessage = document.querySelector('.message');
                
                // 添加示例消息
                exampleMessages.forEach(msg => {
                    if (msg.sender === 'user') {
                        addMessage(msg.content, 'user');
                    } else {
                        addMessage(msg.content, 'bot');
                    }
                });
            }
            
            // 发送按钮点击事件
            sendBtn.addEventListener('click', sendMessage);
            
            // 输入框回车事件
            userInput.addEventListener('keypress', function(e) {
                if (e.key === 'Enter') {
                    sendMessage();
                }
            });
        });
    </script>
</body>
</html>